package com.zmx.job.execute.handler.b2c.order.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zmx.job.execute.handler.common.base.BaseEntity;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * @author zhaomxr
 * null
 */
@Data
@Entity
@Table(name = "b2c_ordercancel")
@DynamicInsert
@DynamicUpdate
@Inheritance(strategy = InheritanceType.JOINED)
public class B2COrdercancel extends BaseEntity {

	/**
	 * 订单Id
	 */
	@Column(name = "orders")
	private Long orders;

	/**
	 * 订单号
	 */
	@Column(name = "order_sn")
	private String orderSn;

	/**
	 * 取消原因
	 */
	@Column(name = "reason")
	private String reason;

	/**
	 * 状态: 0.等待取消 1.已取消 2.取消中 3.作废
	 */
	@Column(name = "status")
	private Integer status;

	/**
	 * 1.客户取消 2.系统取消
	 */
	@Column(name = "source")
	private Integer source;

	/**
	 * null
	 */
	@Column(name = "modifyer")
	private String modifyer;

	/**
	 * null
	 */
	@Column(name = "remark")
	private String remark;


}
